//
//  ShangPinListTableViewCell.m
//  ErJie
//
//  Created by yaorenjin on 2017/1/31.
//  Copyright © 2017年 yaorenjin. All rights reserved.
//

#import "ShangPinListTableViewCell.h"
#import "ShangPinEntity+CoreDataProperties.h"

@implementation ShangPinListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)reloadData:(id)model
{
    ShangPinEntity* spEntity = model;
    self.nameLabel.text = spEntity.name;
    self.chengBenLabel.text = [NSString stringWithFormat:@"%lld",spEntity.chenben];
    self.kucunLabel.text = [NSString stringWithFormat:@"%lld",spEntity.kucun];
    self.fenLeiLabel.text = spEntity.flName;
    self.danJiaLabel.text = spEntity.danjia;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
